package cn.iocoder.yudao.module.handguard.controller.app.houserecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 用户-房子资产记录 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class HouseRecordBaseVO {

    @Schema(description = "用户id", example = "2443")
    private Long userId;

    @Schema(description = "按揭房所在区域")
    private String area;

    @Schema(description = "土地类型")
    private String landTypes;

    @Schema(description = "房屋结构")
    private String buildingStructure;

    @Schema(description = "房屋类型", example = "1")
    private String houseType;

    @Schema(description = "建筑面积")
    private String areaOfStructure;

    @Schema(description = "首套房或者二套房")
    private String oneOrTwo;

    @Schema(description = "按揭时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime mortgageTime;

    @Schema(description = "贷款金额")
    private BigDecimal loanAmount;

    @Schema(description = "小区名字")
    private String cellName;

}
